package com.bestcem.xm.om.service;

import com.bestcem.xm.common.core.domain.web.ServiceResult;
import com.bestcem.xm.om.grpc.service.param.OmPlatformParam;
import com.bestcem.xm.om.service.dto.PlatformDTO;

import java.util.List;

/**
 * @author zhangfeng <feng.zhang@idiaoyan.com>
 * @version v1.0
 * @date 2022/3/22 10:41
 */
public interface PlatformService {
    /**
     * 根据合作伙伴code获取单个合作伙伴
     *
     * @param code
     * @return com.bestcem.xm.util.ServiceResult<com.bestcem.xm.om.service.dto.PlatformDTO>
     * @author zhangfeng <feng.zhang@idiaoyan.com>
     * @date 2022/6/21 16:25
     */
    ServiceResult<PlatformDTO> findOneByCode(String code);

    /**
     * 根据查询条件查询合作伙伴列表
     *
     * @param param
     * @return com.bestcem.xm.util.ServiceResult<java.util.List < com.bestcem.xm.om.service.dto.PlatformDTO>>
     * @author zhangfeng <feng.zhang@idiaoyan.com>
     * @date 2022/6/23 16:07
     */
    ServiceResult<List<PlatformDTO>> listPlatforms(OmPlatformParam param);

    /**
     * 根据租户id查询合作伙伴信息
     *
     * @param orgId
     * @return com.bestcem.xm.util.ServiceResult<com.bestcem.xm.om.service.dto.PlatformDTO>
     * @author zhangfeng <feng.zhang@idiaoyan.com>
     * @date 2022/6/27 19:40
     */
    ServiceResult<PlatformDTO> getPlatformByOrgId(String orgId);
}
